package com.yanqu.road.entity.log.cross.sonhai;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_son_hai_select_buff", desc = "山海伏兽-选择buff", autoSave = true, dataUpload = true, eventName = "mountsea_bless", uploadCk = true, isCross = true)
public class LogCrossSonHaiSelectBuff extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityId", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "队伍id", dataAttribute = "mountsea_team")
    private int teamId;

    @FieldTypeAnnotation(desc = "圣兽降临次数", dataAttribute = "mountsea_blessnum")
    private int buffComeNum;

    @FieldTypeAnnotation(desc = "操作,1:跳过,2:选择,3:替换", dataAttribute = "mountsea_blesstype")
    private int op;

    @FieldTypeAnnotation(desc = "祝福id", dataAttribute = "mountsea_blessid")
    private int buffId;

    @FieldTypeAnnotation(desc = "替换掉圣兽祝福id", dataAttribute = "mountsea_blessrepid")
    private int replaceBuffId;

    public LogCrossSonHaiSelectBuff(int activityId, int groupId, long userId, int teamId, int buffComeNum, int op, int buffId, int replaceBuffId) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.userId = userId;
        this.teamId = teamId;
        this.buffComeNum = buffComeNum;
        this.op = op;
        this.buffId = buffId;
        this.replaceBuffId = replaceBuffId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
